package com.itheima.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.mapper.Mapper;
import com.google.common.collect.Maps;
import com.itheima.admin.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

public interface RoleMapper extends BaseMapper<Role> {
    int deleteRoleUser(@Param("roleId") String roleId);
    int deleteRoleModule(@Param("roleId") String roleId);

    int addRoleToModule(@Param("roleId")String roleId, @Param("moduleIds")List<String> moduleIds);
    List<String> queryRoleModule(@Param("roleId")String roleId);
}
